const typeModel = require("../../db/models")["type"];
const responseCode = require("../../config/httpCode");
const router = require("koa-router")({
  prefix: "/auth/type"
});

router.get("/", async ctx => {
  const tags = await typeModel.findAll();
  ctx.body = {
    code: 200,
    data: tags
  };
});

module.exports = router;
